package com.mdc.mansion.dataaccess.modules.restaurant.entity;

import com.mdc.mansion.dataaccess.common.persistence.BaseEntity;
import org.codehaus.jackson.annotate.JsonIgnore;

/**
 * 餐厅员工信息持久类
 * @author mingdongc
 * @version 2018-01-01
 */
public class RestaurantStaff extends BaseEntity<RestaurantStaff>{
	private static final long serialVersionUID = 1L;
    private String restaurantId;
    private String name;
    private String englishName;
    private String chineseName;
    private String countryCode;
    private String tel;
    private String loginAccount;
    private String password;
    private String roleType;

    public String getRestaurantId(){
        return restaurantId;
    }

    public void setRestaurantId(String restaurantId){
        this.restaurantId=restaurantId;
    }

    public String getName(){
        return name;
    }

    public void setName(String name){
        this.name=name;
    }

    public String getEnglishName(){
        return englishName;
    }

    public void setEnglishName(String englishName){
        this.englishName=englishName;
    }

    public String getChineseName(){
        return chineseName;
    }

    public void setChineseName(String chineseName){
        this.chineseName=chineseName;
    }

    public String getTel(){
        return tel;
    }

    public void setTel(String tel){
        this.tel=tel;
    }

    public String getLoginAccount(){
        return loginAccount;
    }

    public void setLoginAccount(String loginAccount){
        this.loginAccount=loginAccount;
    }

    @JsonIgnore
    public String getPassword(){
        return password;
    }

    public void setPassword(String password){
        this.password=password;
    }

    public String getRoleType(){
        return roleType;
    }

    public void setRoleType(String roleType){
        this.roleType=roleType;
    }

    public String getCountryCode() {
        return countryCode;
    }

    public void setCountryCode(String countryCode) {
        this.countryCode = countryCode;
    }
    /**
     * FWY	服务员
     * ADMIN 管理员
     * SYY	收银
     * CF	厨房人员
     **/
    public enum ROLE_TYPE{
        FWY("服务员","FWY"),
        ADMIN("管理员","ADMIN"),
        SYY("收银","SYY"),
        CF("厨房人员","CF");
        private String name;
        private String val;

        ROLE_TYPE(String name, String val) {
            this.name = name;
            this.val = val;
        }
        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getVal() {
            return val;
        }

        public void setVal(String val) {
            this.val = val;
        }
    }

    private String restaurantName;

    public String getRestaurantName() {
        return restaurantName;
    }

    public void setRestaurantName(String restaurantName) {
        this.restaurantName = restaurantName;
    }
}